package com.imooc.security.core.validator.code;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;

public class ImageCode  extends ValidateCode {

    private BufferedImage bufferedImage;

    public ImageCode(BufferedImage bufferedImage, String code, LocalDateTime expireTime) {
        super(code,expireTime);
        this.bufferedImage = bufferedImage;

    }

    public ImageCode(BufferedImage bufferedImage, String code, int expireIn) {
        super(code,LocalDateTime.now().plusSeconds(expireIn));
        this.bufferedImage = bufferedImage;
    }


    public BufferedImage getBufferedImage() {
        return bufferedImage;
    }

    public void setBufferedImage(BufferedImage bufferedImage) {
        this.bufferedImage = bufferedImage;
    }


}
